package com.lg.atp.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.lg.atp.dao.TblTestTaskCaseMapper;
import com.lg.atp.entity.TblTestTaskCase;
import com.lg.atp.service.ITestTaskCaseService;

@Service("iTestTaskCaseService")
public class ITestTaskCaseServiceImpl implements ITestTaskCaseService {

	@Autowired
	private TblTestTaskCaseMapper tblTestTaskCaseMapper;
	
	@Override
	public int deleteByPrimaryKey(Long id) {
		// TODO Auto-generated method stub
		return tblTestTaskCaseMapper.deleteByTaskCaseKey(id);
	}

	@Override
	public int insert(TblTestTaskCase record) {
		// TODO Auto-generated method stub
		return tblTestTaskCaseMapper.insertTaskCase(record);
	}

	@Override
	public int insertSelective(TblTestTaskCase record) {
		// TODO Auto-generated method stub
		return tblTestTaskCaseMapper.insertTaskCaseSelective(record);
	}

	@Override
	public TblTestTaskCase selectByPrimaryKey(Long id) {
		// TODO Auto-generated method stub
		return tblTestTaskCaseMapper.selectByTaskCaseKey(id);
	}

	@Override
	public int updateByPrimaryKeySelective(TblTestTaskCase record) {
		// TODO Auto-generated method stub
		return tblTestTaskCaseMapper.updateByTaskCaseKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(TblTestTaskCase record) {
		// TODO Auto-generated method stub
		return tblTestTaskCaseMapper.updateByTaskCaseKey(record);
	}

	@Override
	public List<TblTestTaskCase> selectByTaskId(Long taskId) {
		// TODO Auto-generated method stub
		return tblTestTaskCaseMapper.selectByTaskId(taskId);
	}

}
